import request from '@/utils/request'

/**
 * 后台-获取订单资料列表
 * @returns
 */
export const getOrderList = ({ pagenum }) => {
  return request('/manage/orderList', 'get', { pagenum })
}

/**
 * 根据订单编号查找订单信息
 * @param {number} oid 订单编号
 * @returns
 */
export const searchByOid = ({ oid }) => {
  return request('/manage/search/order', 'get', { oid })
}

/**
 * 宠物发货
 * @param {number} oid 订单编号
 * @returns
 */
export const isSend = ({ oid }) => {
  return request('/manage/isSend/order', 'post', { oid })
}

/**
 * 取消订单
 * @param {number} oid 订单编号
 * @returns
 */
export const isCancel = ({ oid }) => {
  return request('/manage/isCancel/order', 'post', { oid })
}
